import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加业余党校
export function addPartySchool(data) {
  return request({
    url: baseUrl + "/pc/party-school",
    method: "post",
    data
  });
}

//查询业余党校
export function getPartySchool(data) {
  return request({
    url: baseUrl + "/pc/party-school",
    method: "get",
    params: data
  });
}

//删除业余党校
export function deletePartySchool(data) {
  return request({
    url: baseUrl + "/pc/party-school",
    method: "delete",
    data
  });
}

//更新业余党校
export function updatePartySchool(data) {
  return request({
    url: baseUrl + "/pc/party-school",
    method: "put",
    data
  });
}

//导入违纪处分
export function importPartySchool(data) {
  return request({
    url: baseUrl + "/pc/party-school",
    method: "post",
    data
  });
}
